package com.baibei.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by shenminjie on 2017/12/13.
 * mail:shenminjie@100bei.com
 */

public class JsInteractedInfo implements Serializable, Parcelable {

    private String accessToken;
    private String refreshToken;
    private String exchange;
    private String memberChannel;
    private String appKey;
    private String appSecret;

    @Override
    public String toString() {
        return "JsInteractedInfo{" +
                "accessToken='" + accessToken + '\'' +
                ", refreshToken='" + refreshToken + '\'' +
                ", exchange='" + exchange + '\'' +
                ", memberChannel='" + memberChannel + '\'' +
                ", appKey='" + appKey + '\'' +
                ", appSecret='" + appSecret + '\'' +
                '}';
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public String getExchange() {
        return exchange;
    }

    public void setExchange(String exchange) {
        this.exchange = exchange;
    }

    public String getMemberChannel() {
        return memberChannel;
    }

    public void setMemberChannel(String memberChannel) {
        this.memberChannel = memberChannel;
    }

    public JsInteractedInfo() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.accessToken);
        dest.writeString(this.refreshToken);
        dest.writeString(this.exchange);
        dest.writeString(this.memberChannel);
        dest.writeString(this.appKey);
        dest.writeString(this.appSecret);
    }

    protected JsInteractedInfo(Parcel in) {
        this.accessToken = in.readString();
        this.refreshToken = in.readString();
        this.exchange = in.readString();
        this.memberChannel = in.readString();
        this.appKey = in.readString();
        this.appSecret = in.readString();
    }

    public static final Creator<JsInteractedInfo> CREATOR = new Creator<JsInteractedInfo>() {
        @Override
        public JsInteractedInfo createFromParcel(Parcel source) {
            return new JsInteractedInfo(source);
        }

        @Override
        public JsInteractedInfo[] newArray(int size) {
            return new JsInteractedInfo[size];
        }
    };
}
